<template>
	<view>
		<view style="font-size: 28rpx;margin: 30rpx 30rpx;">2023年05月</view>
		<view class="view_item" v-for="(item,index) in 2" @click="toDetails">
			<view class="item_1">
				<text class="t_1">电子发票</text>
				<text class="t_2">申请中</text>
			</view>
			<view class="item_2">
				<text class="t_1">2023-02-14</text>
				<text class="t_2">金额：26.00元</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},

		methods: {
			toDetails(){
				uni.navigateTo({
					url: '/pages/my/invoice/historyDetails'
				})
			}
		} 
	}
</script>

<style lang="scss">
	page {
		background-color: #F6F6F6;
	}
	.view_item {
		width: 95%;
		margin: auto;
		margin-top: 20rpx;
		background-color: #FFF;
		border-radius: 20rpx;
		
		.item_1 {
			display: flex;
			justify-content: space-between;
			padding: 23rpx 29rpx;
			.t_1 {
				width: 152rpx;
				height: 46rpx;
				background: #014495;
				border-radius: 20rpx;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #FFFFFF;
				line-height: 46rpx;
				text-align: center;
			}
			.t_2 {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #014495;
			}
		}
		
		.item_2 {
			display: flex;
			justify-content: space-between;
			padding: 10rpx 29rpx 23rpx 29rpx;
			.t_1 {
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #999999;
				line-height: 36rpx;
			}
			.t_2 {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;
				line-height: 36rpx;
			}
		}
	}
</style>